//
//  TrayDropButton.h
//  SohoNaru
//
//  Created by pnpWhite on 13. 7. 9..
//  Copyright (c) 2013년 ladaka Inc. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol TrayDropButtonDelegate;
@interface TrayDropButton : UIView {
    CGPoint _originalPoint;
    CGPoint _originalOutsidePoint;
    
    BOOL _isScrollEnable;
}
@property (assign, nonatomic) id<TrayDropButtonDelegate> delegate;
@property (strong, nonatomic) UIView *mainView;
@property (strong, nonatomic) UIScrollView *svParent;
@property (strong, nonatomic) IBOutlet UIImageView *ivImg;
@property (strong, nonatomic) NSString *imgPath;
@property (assign, nonatomic) NSInteger btnTag;
@property (strong, nonatomic) IBOutlet UIImageView *ivDrop;
@property (strong, nonatomic) IBOutlet UIButton *btnRemove;

- (id) initWithFrame:(CGRect)frame thumbNail:(NSString *)imgPath;
- (IBAction) onClickDelete:(id)sender;
- (void) animationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context;
@end


@protocol TrayDropButtonDelegate <NSObject>
- (void) didImageDelete:(TrayDropButton *)sender;
- (BOOL) didViewInside:(UIImageView *)button imgPath:(NSString *)imgPath touching:(BOOL)isFinish;

@end
